﻿<%@ Page Title="Change status Vacancy" Language="C#" MasterPageFile="~/Employee/MasterPageEmployee.master" AutoEventWireup="true" CodeFile="ChangeStatusVacancy.aspx.cs" Inherits="Employee_ChangeStatusVacancy" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <script type="text/javascript" src="../Scripts/jquery.js"></script>
    <script type="text/javascript">
        $(function () {
            $('#<%=ddlStatus.ClientID %>').change(function () {
                $('#<%=btnSave.ClientID %>').attr('disabled', false);
            });
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentmain" Runat="Server">
       <div id="Main">
        <h2>Change status Vacancy</h2>
        <p class="LineOdd">
            <asp:Label ID="lablel" runat="server" Text="Name vacancy:" Height="20px" 
                Width="180px" CssClass="lblTitleCss"></asp:Label>
            <asp:DropDownList ID="ddlTitle" runat="server" Height="21px" Width="130px" 
                Enabled ="false">
            </asp:DropDownList>
            <asp:TextBox ID="txtVacancyID" runat="server" Width="66px" Enabled="false"></asp:TextBox>
        </p>
        <p style="height:50px">
            <asp:Label ID="lblDescription" runat="server" Text="Description:" Height="20px" 
                Width="180px" CssClass="lblTitleCss"></asp:Label>
            <asp:TextBox ID="txtDecription" runat="server" TextMode="MultiLine" 
                CssClass="CVinput" Height="40px" Width="202px" Enabled ="false"></asp:TextBox>
        </p>
        <p class="LineOdd">
            <asp:Label ID="lblNumberofJob" runat="server" Text="Number needed to hire:" 
                Height="20px" Width="180px" CssClass="lblTitleCss"></asp:Label>
            <asp:TextBox ID="txtNumberofJob" runat="server" CssClass="CVinput" 
                Height="20px" Width="200px" Enabled ="false"></asp:TextBox>
        </p>
        <p>
            <asp:Label ID="lblSalary" runat="server" Text="Salaries:" Height="20px" 
                Width="180px" CssClass="lblTitleCss"></asp:Label>
            <asp:TextBox ID="txtSalary" runat="server" Width="200px" Enabled ="false"></asp:TextBox>
        </p>
        <p class="LineOdd">
            <asp:Label ID="lblWorkplace" runat="server" Text="Address workplase:" 
                Width="180px" CssClass="lblTitleCss"></asp:Label>
            <asp:TextBox ID="txtAddress" runat="server" Width="200px" Enabled ="false"></asp:TextBox>
        </p>
        <p>
            <asp:Label ID="lblDateCreation" runat="server" Text="Date Creation:" 
                Height="20px" Width="180px" CssClass="lblTitleCss"></asp:Label>
            <asp:TextBox ID="txtDateCreation" runat="server" Height="20px" Width="200px" Enabled ="false"></asp:TextBox>
        </p>
        <p class="LineOdd">
            <asp:Label ID="DateFylfilled" runat="server" Text="Date Fulfilled:" 
                Height="20px" Width="180px" CssClass="lblTitleCss"></asp:Label>
            <asp:TextBox ID="txtDateFilfilled" runat="server" CssClass="CVinput" 
                Width="200px" Enabled ="false"></asp:TextBox>
            <asp:CalendarExtender ID="txtDateFilfilled_CalendarExtender" runat="server" 
                TargetControlID="txtDateFilfilled" Enabled ="false">
            </asp:CalendarExtender>
        </p>
        <p>
            <asp:Label ID="lblStatus" runat="server" Text="Status:" Height="20px" 
                Width="180px" CssClass="lblTitleCss"></asp:Label>
            <asp:DropDownList ID="ddlStatus" runat="server" CssClass="CVinput" 
                Height="20px" Width="200px" >
                <asp:ListItem Value="1">Open</asp:ListItem>
                <asp:ListItem Value="2">Suspended</asp:ListItem>
                <asp:ListItem Value="3">Close</asp:ListItem>
            </asp:DropDownList>
        </p>
        <p>
            <asp:Label ID="lblError" runat="server" Text="" ForeColor="Red"></asp:Label>
            <asp:Label ID="lblSuccess" runat="server" ForeColor="Blue"></asp:Label>
        </p>
        <p style="width:380px; text-align:right">
            <asp:Button ID="btnSave" runat="server" Text="Save" Height="30px" 
                Width="100px" onclick="btnSave_Click"/>
            <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
            </asp:ToolkitScriptManager>
        </p>

    </div>
</asp:Content>

